package com.xmall.define.base;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 分页请求基类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BasePageQueryRequest {

    /**
     * 页码
     */
    @NotNull(message = "页码不能为空")
    private Integer page = 1;

    /**
     * 每页数量
     */
    @NotNull(message = "每页数量不能为空")
    private Integer pageSize = 10;

}
